<?php
	include("event-config.php");

	if(!isset($_POST['id'])){
		echo "fail";
	}
	else{
		$id = $_POST['id'];
		$query = "DELETE FROM $EVENT WHERE `event_id` = '$id'";
		
		if(!execute($query)){
			echo "fail";
		}
		else{
			echo "success";
		}
	}
?>